﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;

namespace ApiDoc.Extensions
{
    /// <summary>
    /// Assembly Extensions
    /// </summary>
    public static class AssemblyExtensions
    {
        public static Type[] GetTypesSafe(this Assembly assembly)
        {
            try {
                return assembly.GetTypes();
            } catch (ReflectionTypeLoadException) {
                return new Type[0];
            }
        }
    }
}
